<template>
  <div>
    <a-card>
      <p class="text-lg font-bold">工位使用记录</p>
      <vxe-grid ref="xGrid" v-bind="gridOptions" v-on="gridEvent">
        <template #parking="{ row }">
          {{ row.parking.parking_type + row.parking.no }}
        </template>

        <template #action="{ row }"> </template>
      </vxe-grid>
    </a-card>
  </div>
</template>

<script setup lang="ts">
const route = useRoute();
let id = route.params.id
const { gridOptions,parking_id } = useParkingState();
parking_id.value = id
const xGrid = ref();
const gridEvent: VxeGridListeners<RowVO> = {
  proxyQuery() {
    console.log("数据代理查询事件");
    const grid = xGrid.value;
    // 获取表格中的数据
    // const data = grid.getTableData().fullData;
    // console.log(data);
  },
  proxyDelete() {
    console.log("数据代理删除事件");
  },
  proxySave() {
    console.log("数据代理保存事件");
  },
};
</script>

<style></style>
